<template>
  <div class="dashboard-container">
    <el-button size="small" @click="theme">换肤</el-button>

    <div class="block">
      <el-button type="primary">Primary</el-button>
      <el-button type="success">Success</el-button>
      <el-button type="info">Info</el-button>
      <el-button type="warning">Warning</el-button>
      <el-button type="danger">Danger</el-button>
    </div>
  </div>
</template>

<script>
import { toggleClass } from '@/utils'
import '@/assets/custom-theme/index.css' // the theme changed version element-ui css
export default {
  name: 'Theme',
  filters: {
    // 123
  },
  data() {
    return {
      // 132
    }
  },
  methods: {
    theme() {
      toggleClass(document.body, 'custom-theme')
    }
  }
}
</script>

<style scoped>
.dashboard-container {
  background-color: #fff;
  padding: 30px 20px 20px 20px;
  height: 80vh;
}
.block {
  padding: 30px 24px;
}
</style>
